#include "MGraph.h"
MGraph::MGraph() {

}
MGraph::~MGraph() {

}
quint8 MGraph::getArcNum() {
	return this->arcnum;
}
void MGraph::setArcNum(quint8& arcnum) {
	this->arcnum = arcnum;
}
quint8 MGraph::getVexNum() {
	return this->vexnum;
}
void MGraph::setVexNum(quint8& vexnum) {
	this->vexnum = vexnum;
}
void MGraph::setEdge(EdgeType edge[MaxVertexNum][MaxVertexNum])
{
	for (int i = 0; i < this->getVexNum(); i++) {
		for (int j = 0; j < this->getVexNum(); j++) {
			this->edge[i][j] = edge[i][j];
		}
	}
}
void MGraph::setVex(VertexType vex[MaxVertexNum]) {
	for (int i = 0; i < this->getVexNum(); i++) {
		this->vex[i] = vex[i];
	}
}

